﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DumpDB
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = 0;
            if (0 == args.Length)
            {
                Console.WriteLine("--- Start: " + "@DumpDb.txt");
                n = VideoClipNameHelper.CDBHandler.DumpDb("@DumpDb.txt");
                Console.WriteLine("--- End: " + n.ToString());
                return;
            }
            switch(args[0].ToUpper())
            {
                case "ALL":
                    n = VideoClipNameHelper.CDBHandler.DumpDb();
                    break;
                case "LIKED":
                    n = VideoClipNameHelper.CDBHandler.DumpDb(printLiked:true);
                    break;
                case "PLAYED":
                    n = VideoClipNameHelper.CDBHandler.DumpDb(printPlayed:true);
                    break;
                case "SKIPPED":
                    n = VideoClipNameHelper.CDBHandler.DumpDb(printSkipped:true);
                    break;
                case "DELETED":
                    n = VideoClipNameHelper.CDBHandler.DumpDb(printDeleted:true);
                    break;
                default:
                    Console.WriteLine("Options: none, all, liked, played, skipped, deleted");
                    break;
            }
        }
    }//class
}//namespace
